package org.example.springbootdeptemp.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PageBean<T> {
    private Integer pageNum=1;//第几页
    private Integer pageSize=2;//每页显示的数量

    private Integer totalPage;//当前页码的第一页

    private String name;
    private Integer gender;//性别
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date begin;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date end;

    private List<T> list;//结果列表

    private Integer totalCount;//总页数
}
